package com.arpa.wms.domain.vo;

import com.arpa.wms.domain.entity.BasicEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 预打包单
 * </p>
 *
 * @author leo
 * @since 2021-07-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wms_prepackaged")
@ApiModel(value="Prepackaged对象", description="预打包单")
public class PrepackagedVO extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预打包计划号")
    private String code;

    @ApiModelProperty(value = "仓库标识")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "货主code")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "所属机构code")
    private String groupCode;

    @ApiModelProperty(value = "来源单号，如：oms预播单号,暂时为空不维护")
    private String sourceCode;

    @ApiModelProperty(value = "包裹数量")
    private Integer packageQuantity;

    @ApiModelProperty(value = "单包裹商品种数")
    private Integer typeQuantity;

    @ApiModelProperty(value = "商品总数")
    private BigDecimal totalQuantity;

    @ApiModelProperty(value = "打包任务是否下发：0否，1是")
    private Integer issue;

    @ApiModelProperty(value = "下发包裹总数")
    private Integer issueQuantity;

    @ApiModelProperty(value = "已打包包裹总数")
    private Integer packQuantity;

    @ApiModelProperty(value = "已拣包裹总数")
    private Integer pickingQuantity;

    @ApiModelProperty(value = "状态,0-新增。1-待分配，2-部分分配，3-待拣货，4-拣货完成，5-打包完成")
    private String status;

    @ApiModelProperty(value = "版本号,做乐观锁")
    private Integer version;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "预打包明细关联预打包分配信息集合")
    private List<PrepackagedItemWithDistributionVO> prepackagedItemWithDistributionVOList;

    @ApiModelProperty(value = "明细单包裹组合数量之和")
    private BigDecimal totalCombinationQuantity;

    @ApiModelProperty(value = "分配包裹数量")
    private Integer distributionPackQuantity;

    @ApiModelProperty(value = "库存剩余总数量")
    private BigDecimal totalAvailableStockQuantity;

    @ApiModelProperty(value = "待分配总数量")
    private BigDecimal totalNotDistributionQuantity;

}
